<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>显示效果</title>
    <style>
        .container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto;
            width: 600px;
            height: 600px;
            background-color: olivedrab;
        }

        .normal {
            width: 200px;
            height: 200px;
            background-color: cornflowerblue;
        }

        .switch {
            display: none;
            width: 300px;
            height: 300px;
            background-color: red;
            cursor: pointer;
        }

        .container:hover .normal{
            display: none;
        }

        .container:hover .switch{
            display: block;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="normal">

        </div>
        <div class="switch">

        </div>
    </div>
</body>
</html>